package tut.thread.notSync;

public class Synch {

	public static void main(String[] args) {
		CallMe calllMe = new CallMe();

		Caller obj1 = new Caller(calllMe, "Hello");
		Caller obj2 = new Caller(calllMe, "Synchronized");
		Caller obj3 = new Caller(calllMe, "World");

		obj1.t.run();
		obj2.t.run();
		obj3.t.run();

		try {
			obj1.t.join();
			obj2.t.join();
			obj3.t.join();
		} catch (Exception e) {
			System.out.println("Interrupted");
		}

	}
}
